package demo.day08.work_Bank;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/7/26-07-26-19:14
 * @Description：demo.day08.work_Bank   银行类
 */
public class Bank {
    int custNum;
    Customer[] customers = new Customer[1000];

    public Bank() {
    }
    public void addCustomer(Customer customer){
        customers[custNum] = customer;
        custNum++;
    }
    public int getCustNum() {
        return custNum;
    }

    public Customer getCustomer(int index) {
        return customers[index];
    }
}
